package com.ccc.boot.security.pojo;

import org.springframework.security.core.GrantedAuthority;

/**
 * 授权信息
 *
 * @author superC
 * @version 0.1.0
 * @date 2022/4/12
 */

public class AuthorityData implements GrantedAuthority {

    private static final long serialVersionUID = 3940556525575644719L;

    /**
     * 角色名
     */
    private String roleName;

    @Override
    public String getAuthority() {
        return roleName;
    }

    public String getRoleName() {
        return roleName;
    }

    public AuthorityData(String roleName) {
        this.roleName = roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }
}